import axios from "@/axios";

// 登录
export function login (username,password) {
    return axios.post('/admin/login',{
        username,
        password
    })
}

// 用户信息
export function getinfo () {
    return axios.post ("/admin/getinfo")
}

// 退出登录
export function logout () {
    return axios.post('/admin/logout')
}